home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 43 / Mac Magazin and MacEasy Magazine CD - Issue 43.iso / Software / Multimedia / Sound / PlayerPRO 4.6 Dev.Kit / MADH Library 4.6 / MADLibrary Source / FileUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-11  |  1.7 KB  |  78 lines  |  [TEXT/CWIE]

  1. #include "MAD.h"
  2.  
  3. ////////////////////////////////////////////////////////////
  4.  
  5. #ifdef _MAC_H
  6. short iFileOpen( Ptr name);
  7. void iFileCreate( Ptr name, long);
  8.  
  9. long iGetEOF( short iFileRefI);
  10. OSErr iRead( long size, Ptr dest, short iFileRefI);
  11. OSErr iWrite( long size, Ptr dest, short iFileRefI);
  12. OSErr iSeekCur( long size, short iFileRefI);
  13.  
  14. void iClose( short iFileRefI);
  15.  
  16. char* MADstrcpy( char*, const char*);
  17. int MADstrcmp( const char *dst, const char* src);
  18.  
  19. #define UNFILE    short
  20.  
  21. #endif
  22.  
  23.  
  24. ////////////////////////////////////////////////////////////
  25.  
  26. #ifdef _INTEL_H
  27. FILE* iFileOpen( Ptr name);
  28. void iFileCreate( Ptr name, long);
  29.  
  30. long iGetEOF( FILE* iFileRefI);
  31. OSErr iRead( long size, Ptr dest, FILE* iFileRefI);
  32. OSErr iWrite( long size, Ptr dest, FILE* iFileRefI);
  33. OSErr iSeekCur( long size, FILE* iFileRefI);
  34.  
  35. void iClose( FILE* iFileRefI);
  36.  
  37. char* MADstrcpy( char*, const char*);
  38. int MADstrcmp( const char *dst, const char* src);
  39.  
  40. #include "stdio.h"
  41. #include "stdlib.h"
  42. #include "string.h"
  43.  
  44. #define UNFILE    FILE*
  45.  
  46. #endif
  47.  
  48. ////////////////////////////////////////////////////////////
  49.  
  50. #ifdef _BE_H
  51. FILE* iFileOpen( Ptr name);
  52. void iFileCreate( Ptr name, long);
  53.  
  54. long iGetEOF( FILE* iFileRefI);
  55. OSErr iRead( long size, Ptr dest, FILE* iFileRefI);
  56. OSErr iWrite( long size, Ptr dest, FILE* iFileRefI);
  57. OSErr iSeekCur( long size, FILE* iFileRefI);
  58.  
  59. void iClose( FILE* iFileRefI);
  60.  
  61. char* MADstrcpy( char*, const char*);
  62. int MADstrcmp( const char *dst, const char* src);
  63.  
  64. #include "stdio.h"
  65. #include "stdlib.h"
  66. #include "string.h"
  67.  
  68. #define UNFILE    FILE*
  69.  
  70. #endif
  71.  
  72. ////////////////////////////////////////////////////////////
  73.  
  74.  
  75. void INT32( void *msg_buf);
  76. void INT16( void *msg_buf);
  77. void MOT32( void *msg_buf);
  78. void MOT16( void *msg_buf);